<template>
	<view class="container">
		<view class="tui-page__hd">
			<view class="tui-page__title">Line wrap</view>
			<view class="tui-page__desc">换行排列，大小屏切换查看效果</view>
		</view>
		<view class="tui-page__bd">
			<tui-col :xs="24" :span="4" v-for="(item,index) in 12" :key="index">
				<view class="tui-item" @tap="toast(index)">https://thorui.cn/doc</view>
			</tui-col>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {};
	},
	methods: {
		toast(index){
			this.tui.toast(`${index+1}、切换大屏看效果~`)
		}
	}
};
</script>

<style>
.container {
	padding: 0 4px;
}
.tui-item {
	margin: 4px;
	height: 240px;
	text-align: center;
	background: #5677fc;
	padding: 0 12px;
	box-sizing: border-box;
	font-size: 15px;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	word-break: break-all;
}
</style>
